//
//  XJCodeView.h
//  XinJiangMall
//
//  Created by Tzyang on 2018/4/8.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol XJCodeDelegate <NSObject>

- (void)getCheckCode:(NSString *)checkCode;

@end

@interface XJCodeView : UIView

/** 验证码按钮
 */
@property (nonatomic,strong) UIButton * codeBtn;
/** 计时器
 */
@property (nonatomic,strong) NSTimer * countTimer;

@property (nonatomic,assign) NSInteger time;


@property (nonatomic, weak) id<XJCodeDelegate> delegate;

- (instancetype)initWithTime:(NSInteger)time frame:(CGRect)frame;

@end
